package C10_5_ParameterizeMethod;

/**
 * 令函数携带参数
 **/
public class ParameterizeMethod {

    void tenPercentRaise() {
        int salary = 9999999;
        salary *= 1.1;
    }

    void fivePercentRaise() {
        int salary = 1111111;
        salary *= 1.05;
    }

    void raise(double factor) {
        int salary = 6666666;
        salary *= (1 + factor);
    }

}
